/**
 * 
 */
package GUI;

import javax.swing.*;
import java.awt.*;

/**
 * @author Nir
 *
 */
public class HandelWorkerGui extends JPanel {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	private JButton btnAddWorker;
	private JButton btnRemoveWorker ;
	private JButton btnSetPermission;
	private JButton btnBack;
	private JLabel iconlabel;
	private JButton btnWorkerDetails;
	
	public HandelWorkerGui() {
		setBackground(new Color(255, 51, 0));
		setLayout(null);
		btnAddWorker = new JButton("Add Worker");
		btnAddWorker.setIcon(new ImageIcon(HandelWorkerGui.class.getResource("/resources/edit_add.png")));
		btnRemoveWorker = new JButton("Remove Worker");
		btnRemoveWorker.setIcon(new ImageIcon(HandelWorkerGui.class.getResource("/resources/delete.png")));
		btnSetPermission = new JButton("Change Permission");
		btnSetPermission.setIcon(new ImageIcon(HandelWorkerGui.class.getResource("/resources/change.png")));
		btnBack = new JButton("Back");
		btnBack.setIcon(new ImageIcon(HandelWorkerGui.class.getResource("/resources/back22.png")));
		btnWorkerDetails = new JButton("Worker Details");
		btnWorkerDetails.setIcon(new ImageIcon(HandelWorkerGui.class.getResource("/resources/person_details.png")));
		
		initialize();
		
	}


	private void initialize() {
		
		JLabel lblHandelWorker = new JLabel("Workers");
		lblHandelWorker.setForeground(new Color(0, 204, 255));
		lblHandelWorker.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblHandelWorker.setBounds(10, 11, 107, 28);
		add(lblHandelWorker);
		
		
		btnAddWorker.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnAddWorker.setBounds(121, 112, 192, 39);
		add(btnAddWorker);
		
		btnRemoveWorker.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnRemoveWorker.setBounds(121, 239, 192, 39);
		add(btnRemoveWorker);
		
		btnSetPermission.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnSetPermission.setBounds(440, 112, 192, 39);
		add(btnSetPermission);
		
		btnBack.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnBack.setBounds(10, 462, 101, 27);
		add(btnBack);
		
		ImageIcon LOGOImageIcon = new ImageIcon(getClass().getClassLoader().getResource("resources/camera-background3.png"));
		ImageIcon LOGO = new ImageIcon (LOGOImageIcon.getImage().getScaledInstance(-1, -1, java.awt.Image.SCALE_SMOOTH));
		
		
		btnWorkerDetails.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnWorkerDetails.setBounds(440, 239, 192, 39);
		add(btnWorkerDetails);
		
		iconlabel = new JLabel("");
		iconlabel.setIcon(LOGO);
		iconlabel.setBounds(0, 0, 786, 500);
		add(iconlabel);
		
	}
	
	/**
	 * @return
	 */
	public JButton getBtnSetPermission() {
		return btnSetPermission;
	}

	/**
	 * @param btnSetPermission
	 */
	public void setBtnSetPermission(JButton btnSetPermission) {
		this.btnSetPermission = btnSetPermission;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	/**
	 * @param btnAddWorker
	 */
	public void setBtnAddWorker(JButton btnAddWorker) {
		this.btnAddWorker = btnAddWorker;
	}

	/**
	 * @param btnRemoveWorker
	 */
	public void setBtnRemoveWorker(JButton btnRemoveWorker) {
		this.btnRemoveWorker = btnRemoveWorker;
	}

	/**
	 * @param btnBack
	 */
	public void setBtnBack(JButton btnBack) {
		this.btnBack = btnBack;
	}

	/**
	 * @return the btnAddWorker
	 */
	public JButton getBtnAddWorker() {
		return btnAddWorker;
	}

	/**
	 * @return the btnRemoveWorker
	 */
	public JButton getBtnRemoveWorker() {
		return btnRemoveWorker;
	}

	/**
	 * @return the btnSetPermission
	 */
	public JButton getBtnNewButton() {
		return btnSetPermission;
	}

	/**
	 * @return the btnBack
	 */
	public JButton getBtnBack() {
		return btnBack;
	}
	
	/**
	 * @return
	 */
	public JButton getBtnWorkerDetails() {
		return btnWorkerDetails;
	}

	/**
	 * @param btnWorkerDetails
	 */
	public void setBtnWorkerDetails(JButton btnWorkerDetails) {
		this.btnWorkerDetails = btnWorkerDetails;
	}

}
